FROM registry.cn-hangzhou.aliyuncs.com/bill080307/library:ubuntu-24.04
COPY entrypoint.sh /
RUN apt update \
 && apt install -y --no-install-recommends wget \
 && cd /tmp \
 && wget --no-check-certificate https://dist.ipfs.tech/kubo/v0.35.0/kubo_v0.35.0_linux-amd64.tar.gz \
 && tar -zxf kubo_v0.35.0_linux-amd64.tar.gz \
 && cp kubo/ipfs /usr/local/bin/ \
 && rm -rf * \
 && chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["ipfs","daemon","--enable-namesys-pubsub","--enable-gc"]